﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.IO;

using YAMM.PlugIn;
using YAMM.PlugInManagement;

namespace YAMM
{
    public partial class Form1 : Form
    {
        ServiceProvider serviceProvider = new ServiceProvider();

        public Form1()
        {
            InitializeComponent();
            Icon = (Icon)global::YAMM.Properties.Resources.ResourceManager.GetObject("ApplicationIcon");
            //PluginManager.Init(serviceProvider);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            
        }

        /*
        void ShowPlugin_Click(object sender, EventArgs e)
        {
            string text = ((ToolStripItem)sender).Text;
            
            for (int i = 0; i < ipi.Length; i++)
            {
                if (ipi[i] != null)
                    if (String.Compare(ipi[i].Name, text) == 0)
                        ipi[i].Show();
            }
        }
         */

        /*
        void ConfigPlugin_Click(object sender, EventArgs e)
        {
            string text = ((ToolStripItem)sender).Text;

            for (int i = 0; i < ipi.Length; i++)
            {
                if (ipi[i] != null)
                    if (String.Compare(ipi[i].Name, text) == 0)
                        ipi[i].Configure();
            }
        }
         */

        /*
        private void pluginsNeuLadenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PluginManager.ReloadPlugins();
            //LoadPlugins();
        }
         */

        private void pluginsToolStripMenuItem1_Click(object sender, EventArgs e)
        {            
            PluginManagerForm plugins = new PluginManagerForm();
            plugins.ShowDialog(this);            
        }

        private void toolStripDropDownButton2_Click(object sender, EventArgs e)
        {

        }

        

        private void toolStripComboBox1_Click(object sender, EventArgs e)
        {

        }

        private void menuStrip2_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void ghhffhToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }
    }
}
